package com.bwda.dsrs.filecenter.domain.po.bucversionmanage;

import java.math.BigDecimal;
import java.util.List;

import com.bwda.dsrs.filecenter.domain.po.terminalversion.PublishXml;
import com.bwda.dsrs.filecenter.domain.po.terminalversion.PublishXml;
import lombok.Data;
/**
 * @description:
 * @author: system
 * @create: 2019-08-14 15:13
 */
@Data
public class BucVersionmanagePo {

	/**
	 * id
	*/
	private Integer id;

	/**
	 * id列表
	 */
	private List<Integer> idList;

	/**
	 * 版本号
	*/
	private String vmvernum;
	/**
	 * 升级模式
	*/
	private Integer vmisforce;
	/**
	 * 升级包类型
	*/
	private Integer vmpackagetype;
	/**
	 * 升级包HASH值
	*/
	private String vmpackagehash;
	/**
	 * 升级包相对路径
	*/
	private String vmftppath;
	/**
	 * BC文件HASH值
	*/
	private String vmbchash;
	/**
	 * 升级包大小
	*/
	private String vmpackagesize;
	/**
	 * 发布日期
	*/
	private String vmpublishdate;
	/**
	 * 上传日期
	*/
	private String vmuploaddate;
	/**
	 * 发布说明
	*/
	private String vmpublishdesc;
	/**
	 * 业务名称
	*/
	private String bmname;
	/**
	 * 是否删除
	*/
	private Integer delFlag;

	/**
	 * ftpid
	 */
	private Integer ftpId;

	/**
	 * 文件名称
	 */
	private String fileName;

	public BucVersionmanagePo zhPo(PublishXml publishXml){
		BucVersionmanagePo po = new BucVersionmanagePo();
		po.setVmvernum(publishXml.getBcVer());
		po.setBmname(publishXml.getBcName());
		po.setVmisforce(Integer.valueOf(publishXml.getIsForce()));
		po.setVmpackagetype(Integer.valueOf(publishXml.getPackageType()));
		po.setVmpackagehash(publishXml.getPackageHash());
		po.setVmpackagesize(publishXml.getPackageSize());
		po.setVmbchash(publishXml.getBcHash());
		po.setVmpublishdate(publishXml.getPublishDate());
		po.setVmpublishdesc(publishXml.getPublishDesc());
		return  po;
	}
}